package com.demo.react.repository;


import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import org.springframework.stereotype.Repository;

import com.demo.react.entity.Comment;

@Repository
public interface CommentRepostory extends CrudRepository<Comment, Long> {

	@SuppressWarnings("unchecked")
	Comment save(Comment comment);

	@Query("select c from Comment c")
	Page<Comment> queryCommentList(Pageable pageable);
}
